#!/bin/bash
docker run --name ruoyi-mysql -v ~/ruoyi/sql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -d mysql:5.7.33

#Restoring data from dump files

#For restoring data. You can use docker exec command with -i flag, similar to the following:

#$ docker exec -i ruoyi-mysql sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < /some/path/on/your/host/all-databases.sql
